package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.CategoryQueryClientFallback;
import com.zqh.myfmmall.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-10 15:12
 */
@FeignClient(value = "category-query",fallbackFactory = CategoryQueryClientFallback.class)
public interface CategoryQueryClient{
    @GetMapping("category/retrieveByParentId/{parentId}")
    Result retrieveByParentId(@PathVariable("parentId") String parentId);

    @GetMapping("category/retrieveFirstLevalCategoryVos")
    Result retrieveFirstLevalCategoryVos();

    @GetMapping("category/retrieveAllVos")
    Result retrieveAllVo();
}
